<div class="header">
    <div class="headermenu">
    <a href="/"><img src="http://beta.cailuongso.com/template/images/cls.png" width="145px" height="30px" border="0"/></a>
    <div id="search">
<form id="searchform" action="http://beta.cailuongso.com/">
<input id="inputString" type="text" autocomplete="off" onkeyup="lookup(this.value);" class="search" name="key" value="Nhập nội dung cần tìm"  onblur="if(this.value=='') this.value='Nhập nội dung cần tìm';" onFocus="if(this.value=='Nhập nội dung cần tìm') this.value='';" />  
  <div id="suggestions"></div> 
    </form>
    </div>  
    <div id="newsbt"><div class="buttons"><a href="http://tintuc.cailuongso.com" target="_blank" class="button">Tin tức</a></div></div>
    <div id="picture"><div class="buttons"><a href="http://hinhanh.cailuongso.com" target="_blank" class="button">Hình ảnh</a></div></div>
	<?php
	if ($_SERVER['SERVER_NAME']=='diendan.cailuongso.com') echo'
	<div id="forum"><div class="buttons"><a href="http://cailuongso.com" target="_blank" class="button">Nghe nhạc</a></div></div>';   
    else
	echo '
    <div id="forum"><div class="buttons"><a href="http://diendan.cailuongso.com" target="_blank" class="button">Diễn đàn</a></div></div>  ';
    ?>
  
    <?php if ((enable(26)) && (!check())) 	
	echo '<div id="loginp"><div class="buttons"><a id="loginfancy" href="#loginbox" class="button add">Đăng nhập</a></div></div>'; ?>
    <?php if ((enable(26)) && (check()))
	echo '<div id="logout"><div class="buttons"><a href="http://'.$_SERVER['SERVER_NAME'].'/logout.php" class="button flag">Thoát</a></div></div>'; ?>
     	
	<?php if ((enable(25))&& (check())) echo '<div id="upload"><div class="buttons"><a id="uploadfancy" href="#uploadbox" class="button up">Upload</a></div></div>';  ?>
    
    <div id="loginbox" style="width:210px; height:370px; display: none;">
<div align="center">
<img src="http://beta.cailuongso.com/media/logo/cailuongso.png" width="130px"/>
<br/><br/>
<?php
echo "<form id=\"login\" action=\"http://diendan.cailuongso.com/login.php?do=login\" method=\"post\" onsubmit=\"md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0)\">

<table width='100%'>
          <tr align='center'>
            <td colspan='2' height='10px'></td>
          </tr>
          <tr>
            <td width='57px' height='25'>Tài khoản</td>
     <td><input type=\"text\" class='login-input' style=\"font-size: 11px\" name=\"vb_login_username\" id=\"navbar_username\" size=\"10\" accesskey=\"u\" tabindex=\"101\" onfocus=\"if (this.value == 'User Name') this.value ='';\" /></td>
          </tr>
          <tr>
            <td height='25'>Mật khẩu</td>
            <td><input type=\"password\" class='login-input' style=\"font-size: 11px\" name=\"vb_login_password\" id=\"navbar_password\" size=\"10\" tabindex=\"102\" /></td>
          </tr>
        </table>
<label for=\"cb_cookieuser_navbar\"><input type=\"checkbox\" name=\"cookieuser\" value=\"1\" tabindex=\"103\" id=\"cb_cookieuser_navbar\" accesskey=\"c\" />&nbsp;&nbsp; Ghi nhớ tài khoản &nbsp; &nbsp;</label>
<input type=\"submit\"  class=\"login-button\" value=\"Đăng nhập\" tabindex=\"104\" title=\"Vui lòng cung cấp tài khoản và mật khẩu để thực hiện đăng nhập vào hệ thống !\" accesskey=\"s\" />
<input type=\"hidden\" name=\"s\" value=\"\" />
<input type=\"hidden\" name=\"do\" value=\"login\" />           
<input type=\"hidden\" name=\"vb_login_md5password\" />
<input type=\"hidden\" name=\"vb_login_md5password_utf\" />
</form><br/>
<div class='notelogin'>Chào mừng bạn đến với Cải lương Số !<br/> Hãy nhanh tay đăng nhập để chia sẻ lời ca tiếng hát hoặc các vở cải lương hay với bạn bè đồng điệu !</div>";
?>
	</div>
    </div>    
    
    <div id="uploadbox" style="width:650px; display: none;">
	<div class="uploaddata">
    <div align="center">
<div class="logintitle">Upload nhạc để cùng chia sẻ với mọi người (^_^) | (^!^) </div>
<form method="post" action="<?php echo 'http://'.$_SERVER['SERVER_NAME'].'/' ?>upload.php"/>
<div id="finish"><button type="submit" name="xacnhan" class="btn btn-success fileinput-button"><i class="icon-plus icon-white"></i><span>Hoàn tất</span></button></div>
<table width="100%" border="1" cellspacing="0" cellpadding="0" class="boxupload" >
  <tr>
    <td width="80">Tên Album<br/></td>
    <td width="170"><input type="text" class="textbox" name="album_name"/></td>
     <td rowspan="4" style="vertical-align:top"><textarea class="moreinfo" name="album_info">Thông tin liên quan đến Album</textarea></td>
  </tr>
  <tr>
    <td>Nghệ sĩ</td>
    <td><input type="text" class="textbox" name="album_artist"/></td>
  </tr>
  <tr>
    <td>Soạn giả</td>
    <td><input type="text" class="textbox" name="album_author"/></td>
  </tr>
  <tr>
    <td>Thể loại</td>
    <td><select class="selectcat" name="album_cat"> 
            	<?php 
					$cmd=mysql_query("SELECT * FROM `cat`");
					while ($info=mysql_fetch_array($cmd,MYSQL_ASSOC)){
						$value=$info['cat_id'];
						echo '<option class="choncat" value="'.$value.'">'.$info['cat_name'].'</option>';
					}
				?>
            </select> </td>
  </tr>
  </table>
</form>
<form id="fileupload" action="data/upload/" method="POST" enctype="multipart/form-data">
    <div class="formupload">
  <table width="600" border="0" cellspacing="0" cellpadding="0">
  <tr>
     <td width="120px"><span class="btn btn-success fileinput-button"><i class="icon-plus icon-white"></i><span>Chọn file</span><input type="file" name="files[]" multiple></span></td>
    <td class="row fileupload-buttonbar">
            <div class="span7">
            <button type="submit" class="btn btn-primary start">
                    <i class="icon-upload icon-white"></i>
                    <span>Tải lên</span>
                </button>
                <button type="reset" class="btn btn-warning cancel">
                    <i class="icon-ban-circle icon-white"></i>
                    <span>Hủy</span>
                </button>
                  <div class="span5">
                <div class="progress progress-success progress-striped active fade">
                    <div class="bar" style="width:0%;" align="left"></div>
                </div>
            </div>
            </div>
      </td>
  </tr>
</table>   
</div>
        <div class="uploadarea">
        <table class="table table-striped"><tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery">      
        </tbody></table>
        </div>
    </form>
<script id="template-upload" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
    <tr class="template-upload fade">
        <td class="name"><span>{%=file.name%}</span></td>
        <td class="size" width="75px"><span>{%=o.formatFileSize(file.size)%}</span></td>
        {% if (file.error) { %}
            <td class="error" colspan="2"><span class="label label-important">{%=locale.fileupload.error%}</span> {%=locale.fileupload.errors[file.error] || file.error%}</td>
        {% } else if (o.files.valid && !i) { %}
            <td width="100px">
                <div class="progress progress-success progress-striped active"><div class="bar" style="width:0%;"></div></div>
				<br/>
            </td>
            <td class="start" width="80px">{% if (!o.options.autoUpload) { %}
                <button class="btn btn-primary">
                    <i class="icon-upload icon-white"></i>
                    <span>{%=locale.fileupload.start%}</span>
                </button>
            {% } %}</td>
        {% } else { %}
            <td colspan="2"></td>
        {% } %}
        <td class="cancel" width="65px">{% if (!i) { %}
            <button class="btn btn-warning">
                <i class="icon-ban-circle icon-white"></i>
                <span>{%=locale.fileupload.cancel%}</span>
            </button>
        {% } %}</td>
    </tr>
{% } %}
</div>
</script>
<script id="template-download" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
    <tr class="template-download fade">
        {% if (file.error) { %}
            <td class="name"><span>{%=file.name%}</span></td>
            <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
            <td class="error" colspan="2"><span class="label label-important">{%=locale.fileupload.error%}</span> {%=locale.fileupload.errors[file.error] || file.error%}</td>
        {% } else { %}
            <td class="name">
                <a href="{%=file.url%}" title="{%=file.name%}" rel="{%=file.thumbnail_url&&'gallery'%}" download="{%=file.name%}">{%=file.name%}</a>
            </td>
            <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
            <td colspan="2"></td>
        {% } %}
        <td class="delete" width="70px">
            <button class="btn btn-danger" data-type="{%=file.delete_type%}" data-url="{%=file.delete_url%}">
                <i class="icon-trash icon-white"></i>
                <span>{%=locale.fileupload.destroy%}</span>
            </button>
        </td>
    </tr>
{% } %}
</script>
<?php include('script/uploadjs.php');?>
</div>    
	</div>
    </div>
     </div> 
    </div>
<?php 
if (enable(1)){ ?>
<script type="text/javascript" src="http://beta.cailuongso.com/template/script/js/topbanner.js"></script>
<div id="topbanner"><div id="idbner-item-1208" class="item"><div id="idbner-1208" class="item-bner" style="height:60px;"><div id="advtop"></div>
<script type="text/javascript">
	var _bner = new adexpandable({
bannerSrc:"http://beta.cailuongso.com/media/adv/top.swf",bannerId: "advtop",parentBannerId: "idbner-1208",isIframe: true,iframeId:"topbanner"});
    _bner.buildBanner();
</script>
<script type="text/javascript">
	var _bner = new adexpandable({
bannerSrc:"http://beta.cailuongso.com/media/adv/top.swf",bannerId: "advtop",parentBannerId: "idbner-1208",isIframe: true,iframeId:"topbanner"});
    _bner.buildBanner();
</script>
</div>
</div>
</div>
<?php } ?>





